class Crawler::RuleJob < Crawler::Job
  def run
    log_info("Applying rules")
    start_time = Time.now

    Rule.apply_all
    
    finish_time = Time.now
    elapsed = (finish_time - start_time).to_f.round(1)
    log_info("Rule application complete (#{elapsed} s).")
    
    @deadline = Time.now + 30.seconds
  end
end
